package com.longcai.piaojia.conn;

import com.longcai.piaojia.conn.BaseAsyGet;
import com.longcai.piaojia.conn.Conn;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/1/11.
 */
@HttpInlet(Conn.ACTIVITY_ORDER_EVALUATE)
public class LatestOrderEvaluateGet extends BaseAsyGet<String>  {

    public String id, p_id, user_id, content;

    public LatestOrderEvaluateGet(AsyCallBack<String> asyCallBack) {
        super(asyCallBack);
    }

    @Override
    protected String parser(JSONObject object) throws Exception {

        TOAST = object.optString("message");

        if (object.optInt("code") == 200) {


            return "成功";
        }

        return null;
    }
}
